Conversation
I'm sure there's an "eleganter" way solve this, but ...
lpil
left a comment
There was a problem hiding this comment.
Thank you!
Looking at the other languages this would normally be a function for each of the water drinker and the zebra owner. How come you have opted for a data structure holding both?
config.json
Outdated
| "practices": [], | ||
| "prerequisites": [], |
There was a problem hiding this comment.
Could you add the practices and prerequisites please
Once the puzzle is solved (once), both answers are known. Having to solve it twice is redundant. I chose one test function with 3 assertions. |
|
Please switch over to having two functions, as that's what the problem specification repo instructs. Thank you |
|
Reworked as requested. custom-types is no longer a prerequisite, as that's an implementation detail. |
I'm sure there's an "eleganter" way solve this, but ...